package com.qijian.quality.domain;

import com.qijian.common.enums.ApprovalDescriptionEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 质检结果记录详情对象 inspection_result_record_detail
 *
 * @author qijian
 * @date 2025-03-28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("inspection_result_record_detail")
public class InspectionResultRecordDetail extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "ID")
    private Long id;

    @Excel(name = "质检结果id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "质检结果id")
    private Long mainId;

    @Excel(name = "检验表id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "检验表id")
    private Long inspectionItemId;

    @Excel(name = "检验详情表id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "检验详情表id")
    private Long inspectionItemDetailId;

    @Excel(name = "检验方案表id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "检验方案表id")
    private Long inspectionSchemeId;

    @Excel(name = "下限值")
    @ApiModelProperty(value = "下限值")
    private String minValue;

    @Excel(name = "上限值")
    @ApiModelProperty(value = "上限值")
    private String maxValue;

    @Excel(name = "默认值")
    @ApiModelProperty(value = "默认值")
    private String defaultValue;

    @Excel(name = "实际测量值")
    @ApiModelProperty(value = "实际测量值")
    private String actualValue;

    @Excel(name = "是否合格")
    @ApiModelProperty(value = "是否合格")
    private Boolean isQualified;

    @Excel(name = "检测频次")
    @ApiModelProperty(value = "检测频次")
    private Long frequency;

    @Excel(name = "是否是输入框，默认true")
    @ApiModelProperty(value = "是否是输入框，默认true")
    private Boolean isText;

    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

}
